<?php include 'header.php';

 include '../../conexaoMysql.php';

 $eventos = new crud();
 
 
 $cursos = $eventos->ler('tbCursos', '*','where tbCursosIdEvento=73 and tbCursosTipo=0');
 $miniCurso = $eventos->ler('tbCursos', '*','where tbCursosIdEvento=73 and tbCursosTipo=1');
?>
				
				<!-- main -->
				<div class="main">
                                        
					<section class="post">

							<h1>Programação</h1>
							
					</section>
                                        
                                    
                                       <section class="post">
                                           <h2>CURSOS</H2>
                                           <tr>
                                                <th width="20%">TEMA</th>
                                                <th width="40%">HORARIO</th>
                                           </tr>
                                           <table width="25%" cellspacing="2" cellpadding="2">
                                               <?php while ($linha = mysql_fetch_array($cursos)){
                                                   echo "<tr><td>$linha[1]</td>";
                                                   echo "<td>$linha[2]</td></tr>";
                                                   
                                                }?>    
                                           </table>
					</section>
                                        
                                                
                                          <section class="post">
                                           <h2>MINI-CURSOS</H2>
                                           <tr>
                                                <th width="20%">TEMA</th>
                                                <th width="40%">HORARIO</th>
                                           </tr>
                                           <table width="25%" cellspacing="2" cellpadding="2">
                                               <?php while ($linha = mysql_fetch_array($miniCurso)){
                                                   echo "<tr><td>$linha[1]</td>";
                                                   echo "<td>$linha[2]</td></tr>";
                                                   
                                                }?>    
                                           </table>
					</section>
                                      
                                                

                                <?php include 'footer.php'; ?>
				